// pages/login/recover_pwd/recover_pwd.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    phoneNum:'',
    pwdNum:''
  },  
  // 手机号码失去焦点
  phoneBlur(e){
    let that = this;
    that.setData({
      phoneNum:e.detail.value
    })
  },
  //密码失去焦点
  pwdBlur(e){
    let that = this;
    that.setData({
      pwdNum:e.detail.value
    })
  },
  // 点击获取验证码
  validate(){
    wx.showToast({
      title: "暂无数据",
      icon: 'none',
      duration: 1500,
      mask: false,
    });
  },
  //确认
  onclick(){
    let that = this;
    if(that.data.phoneNum!=""&&that.data.pwdNum!=''){
      wx.showToast({
        title: '修改成功',
        icon: 'none',
        duration: 1500,
        mask: false,
      });
      wx.navigateTo({
        url: "/pages/login/login_phone/login_phone"
      });
    }else{
      wx.showToast({
        title: "请核对信息",
        icon: 'none',
        duration: 1500,
        mask: false,
      });
    }
  }
})